package com.yy.community.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
@Slf4j
public class PageController {

    @GetMapping({"/", "index"})
    public String index() {
        System.out.println("===============content");
        log.info("=============info");
        log.warn("=============warn");
        log.error("=============error");

        return "index";
    }

    @GetMapping("/page/bbs")
    public String bbs() {
        return "bbs";
    }

    @GetMapping("/page/building")
    public String building() {
        return "building";
    }

    @GetMapping("/page/nearby")
    public String nearby() {
        return "nearby";
    }

    @GetMapping("/page/blog")
    public String blog() {
        return "blog";
    }

    @GetMapping("/page/blog/single")
    public String blogSingle() {
        return "blog-single";
    }

    @GetMapping("/page/contact")
    public String contact() {
        return "about";
    }

    @GetMapping("/page/about")
    public String about() {
        return "about";
    }

}
